<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	template="/templates/default.xhtml">
	<ui:define name="content">
	
		<h1>Semester Information</h1>
		
		<h:form id="class">
			<div class="box-body">
		        <div class="form-group">
		            <label for="name">Name</label>
		            <h:inputText name="name" class="form-control" value="#{subjectsController.subject.name}"/>
		        </div>
		        <div class="form-group">
		            <label for="startDate">Code</label>
		            <h:inputText name="code" class="form-control" value="#{subjectsController.subject.code}"/>
		        </div>
				<div class="form-group">
		            <label for="endDate">Total hours</label>
		            <h:inputText name="totalHours" class="form-control" value="#{subjectsController.subject.totalHours}"/>
		        </div>
			</div>
			<div class="box-footer">
	            <h:commandButton action="#{subjectsController.doSubmit}" value="Save" styleClass="btn btn-primary"/>
	           	<h:commandButton value="Clear" type="reset" styleClass="btn"/>
	        </div>
		</h:form>

	</ui:define>
</ui:composition>